<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
    <template v-if="menu.route.value?.matched.length">
      <el-breadcrumb-item
        :to="{ path: '/' }"
        v-for="(r, index) of menu.route.value.matched"
        :key="index"
      >
        {{ r.meta.menu?.title }}</el-breadcrumb-item
      >
    </template>
  </el-breadcrumb>
</template>

<script setup lang="ts">
import menu from "@/composables/menu";


</script>

<style scoped></style>
